//
//  DataBase.h
//  test
//
//  Created by kepuG on 17/2/4.
//  Copyright © 2017年 text. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Person;
@class Car;

@interface DataBase : NSObject

+ (instancetype)shareDataBase;

-(void)addPerson:(Person *)person;

-(void)deletePerson:(Person *)person;

-(void)updatePerson:(Person *)person;

-(NSMutableArray *)getAllData;


#pragma mark car

-(void)addCar:(Car*)car toPerson:(Person*)person;

- (NSMutableArray *)getAllCarsFromPerson:(Person *)person;


@end
